package study.feign;

import org.springframework.stereotype.Service;
import study.dao.entity.MovieUser;

/**
 * @author sunxuejian
 * @date 2020/4/3
 */
@Service
public class UserFeignClientFallback implements UserFeignClient{

    @Override
    public MovieUser selectById(int id) {
        System.out.println("fallback-thread: " + Thread.currentThread().getName());
        MovieUser user = new MovieUser();
        user.setId(0);
        return user;
    }

    @Override
    public MovieUser postUser(MovieUser user) {
        return null;
    }
}
